<?php

namespace App\Models;

use Illuminate\Auth\MustVerifyEmail;
use Illuminate\Notifications\Notifiable;
use Illuminate\Auth\MustVerifyEmail as MustVerifyEmailTrait;
use Illuminate\Foundation\Auth\User  as Authenticatable;
use Illuminate\Contracts\Auth\MustVerifyEmail as MustVerifyEmailContract;

class User extends Authenticatable implements MustVerifyEmailContract
{
    //

    use Notifiable,MustVerifyEmailTrait;
    //白名单  只针对 create 方法
    protected $fillable=['name', 'email', 'password','introduction', 'avatar'];
    //在查询的时候不显示的字段
    protected $hidden = [
        'password', 'remember_token',
    ];

}
